package com.googlecode.compliancechecker;

/**
 * Reference to a certain method of a type.
 * 
 * @author Marc-Christian Schulze
 * 
 */
public class MethodReference extends TypeReference {

	private String	methodName;
	private String	signature;

	public MethodReference(int line, String className, String methodName, String signature) {
		super(line, className);
		this.methodName = methodName;
		this.signature = signature;
	}

	@Override
	public String toString() {
		return "MethodReference[className='" + getTypeName() + "', methodName='" + methodName + "', signature='"
				+ signature + "'] @ line " + getLine();
	}

	public String getMethodName() {
		return methodName;
	}

	public String getSignature() {
		return signature;
	}
}
